package com.kehongborui.spring.dao.impl;

import com.kehongborui.spring.dao.UserDao;
import com.kehongborui.spring.entity.User;
import org.springframework.stereotype.Repository;

/**
 * @author zhang peng yang ming
 * @CopyRight (C) http://www.csdn.com
 * @brief
 * @email 122162005@qq.com
 * @date 2018-07-31
 */
@Repository
public class MysqlUserDao implements UserDao {
    @Override
    public User findByUsername(String username) {
        User user = new User();
        user.setUsername("admin");
        user.setPassword("123");
        return user;
    }
}
